import './index.less'
import Nav from "./Nav/index.jsx";
import Main from "./Main/index.jsx";
import {useEffect} from "react";
import {useNavigate} from "react-router-dom";

const Introduce = () => {

    const navigate = useNavigate()
    useEffect(() => {
        let token = window.localStorage.getItem('token')
        if (token){
            navigate('/workplace')
        }
    }, []);

    return (
        <>
            <Nav></Nav>
            <Main></Main>

        </>
    )
}

export default Introduce
